package com.dp.vo;

import java.io.Serializable;
import java.sql.Blob;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_certificate")
public class TCertificate implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    @Basic(optional = false)
	    @Column(name = "id")
	    private Integer id;
	    @Column(name = "cnumber")
	    private String cnumber;
	    @Column(name = "ctype")
	    private String ctype;
	    @Column(name = "cname")
	    private String cname;
	    @Column(name = "nation")
	    private String nation;
	    @Column(name = "birth_date")
	    private Date birth_date;
	    @Column(name = "cadress")
	    private String cadress;
	    @Column(name = "cphoto")
	    private Blob cphoto;
	    @Column(name = "valid_period")
	    private String valid_period;
	    @Column(name = "note")
	    private String note;
	    
	    public TCertificate(){
	    	
	    }
	   
		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getCnumber() {
			return cnumber;
		}

		public void setCnumber(String cnumber) {
			this.cnumber = cnumber;
		}

		public String getCtype() {
			return ctype;
		}

		public void setCtype(String ctype) {
			this.ctype = ctype;
		}

		public String getCname() {
			return cname;
		}

		public void setCname(String cname) {
			this.cname = cname;
		}

		public String getNation() {
			return nation;
		}

		public void setNation(String nation) {
			this.nation = nation;
		}

		public Date getBirth_date() {
			return birth_date;
		}

		public void setBirth_date(Date birth_date) {
			this.birth_date = birth_date;
		}

		public String getCadress() {
			return cadress;
		}

		public void setCadress(String cadress) {
			this.cadress = cadress;
		}

		public Blob getCphoto() {
			return cphoto;
		}

		public void setCphoto(Blob cphoto) {
			this.cphoto = cphoto;
		}

		public String getValid_period() {
			return valid_period;
		}

		public void setValid_period(String valid_period) {
			this.valid_period = valid_period;
		}

		public String getNote() {
			return note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (id != null ? id.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof TCertificate)) {
	            return false;
	        }
	        TCertificate other = (TCertificate) object;
	        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.TCertificate[id=" + id + "]";
	    }
}
